import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/goods'
  },
  //商品
  {
    path: '/goods',
    component: () => import('../views/nav/Goods.vue')
  },
  //评价
  {
    path: '/reatings',
    component: () => import('../views/nav/Reatings.vue')
  },
  //商家
  {
    path: '/shop',
    component: () => import('../views/nav/Shop.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
